<template>
<div> 
    学校名称:{{name}},
    学校地址:{{address}}
   <button @click="sendSchoolName" >把学校名给App</button>
</div>
</template>

<script>

   export default {
        name:  'School',
        props:['schoolName'],
        data(){
            return{
            name:"兰州理工大学",
            address:"甘肃"
            }
        },
        components: {},
        methods:{
            sendSchoolName(){
                this.schoolName(this.name);
            }
        }
    
   }
</script>

<style scoped>

</style>